package cn.bone.ou.community.mapper;

import cn.bone.ou.community.bean.CommitteeMember;
import cn.bone.ou.community.dto.CommitteeDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommitteeMemberMapper extends BaseMapper<CommitteeMember> {

    CommitteeMember getByParam(@Param("communityId")Integer communityId,
                               @Param("committeeId")Integer committeeId,
                               @Param("userId")Integer userId);

    List<CommitteeDto.ListMemberDto> list(@Param("communityId")Integer communityId,
                                          @Param("start")Integer start,
                                          @Param("num")Integer num);

    int countList(@Param("communityId")Integer communityId);
}
